import request from '@/utils/request'

export function getBrandAndBrandPersonList(query) {
  return request({
    url: "/brand/getBrandAndBrandPersonList",
    method: "get",
    params: query
  })
}

export function getBarandList(query) {
  return request({
    url: "/brand/getBarandList",
    method: "post",
    params: query
  })
}

export function getBarandAllList(query) {
  return request({
    url: "/brand/getBarandAllList",
    method: "post",
    params: query
  })
}

// 查询品牌子分类列表
export function getBrandPersonList(query) {
  return request({
    url: "/brand/getBrandPersonList",
    method: "post",
    params: query
  })
}

// 新增品牌数据
export function insertBrand(query) {
  return request({
    url: "/brand/insertBrand",
    method: "post",
    params: query
  })
}

// 新增品牌子分类数据
export function insertBrandPerson(query) {
  return request({
    url: "/brand/insertBrandPerson",
    method: "post",
    params: query
  })
}

// 修改品牌数据
export function updateBrand(query) {
  return request({
    url: "/brand/updateBrand",
    method: "post",
    params: query
  })
}

// 修改品牌子分类数据
export function updateBrandPerson(query) {
  return request({
    url: "/brand/updateBrandPerson",
    method: "post",
    params: query
  })
}

// 授权品牌
export function insertAuthorize(query) {
  return request({
    url: "/brand/insertAuthorize",
    method: "post",
    params: query
  })
}

export function delBrandByIds(data) {
	return request({
		url: "/brand/delBrandByIds/"  + data,
		method: "post"
	})
}

export function delBrandPersonByIds(data) {
	return request({
		url: "/brand/delBrandPersonByIds/"  + data,
		method: "post"
	})
}

// 获取公司部门列表
export function getDeptList(query) {
  return request({
    url: "/system/dept/list",
    method: "get",
    params: query
  })
}